/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "程序",TableName = "PROC_PROGRAM")]
    public partial class PROC_PROGRAM:BaseEntity
    {
        /// <summary>
       ///Id
       /// </summary>
       [Key]
       [Display(Name ="Id")]
       [Column(TypeName="uniqueidentifier")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public Guid Id { get; set; }

       /// <summary>
       ///工单
       /// </summary>
       [Display(Name ="工单")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string Identifier { get; set; }

       /// <summary>
       ///FTP加工中心单外键
       /// </summary>
       [Display(Name ="FTP加工中心单外键")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? ftpmachiningcenter_id { get; set; }

       /// <summary>
       ///序
       /// </summary>
       [Display(Name ="序")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? sequence { get; set; }

       /// <summary>
       ///程序名称
       /// </summary>
       [Display(Name ="程序名称")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string program_name { get; set; }

       /// <summary>
       ///刀具名称
       /// </summary>
       [Display(Name ="刀具名称")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string tool_name { get; set; }

       /// <summary>
       ///刀柄
       /// </summary>
       [Display(Name ="刀柄")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string tool_handle { get; set; }

       /// <summary>
       ///夹头
       /// </summary>
       [Display(Name ="夹头")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string tool_collet { get; set; }

       /// <summary>
       ///刀具长度
       /// </summary>
       [Display(Name ="刀具长度")]
       [DisplayFormat(DataFormatString="18,3")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? knife_length { get; set; }

       /// <summary>
       ///刃长
       /// </summary>
       [Display(Name ="刃长")]
       [DisplayFormat(DataFormatString="18,3")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? blade_length { get; set; }

       /// <summary>
       ///类型
       /// </summary>
       [Display(Name ="类型")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string category { get; set; }

       /// <summary>
       ///刀损值
       /// </summary>
       [Display(Name ="刀损值")]
       [DisplayFormat(DataFormatString="18,3")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? accuracy { get; set; }

       /// <summary>
       ///转速
       /// </summary>
       [Display(Name ="转速")]
       [DisplayFormat(DataFormatString="18,3")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? rotate_speed { get; set; }

       /// <summary>
       ///进给
       /// </summary>
       [Display(Name ="进给")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string feed { get; set; }

       /// <summary>
       ///侧/底余量
       /// </summary>
       [Display(Name ="侧/底余量")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string side_bottom_margin { get; set; }

       /// <summary>
       ///Z深
       /// </summary>
       [Display(Name ="Z深")]
       [DisplayFormat(DataFormatString="18,3")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? z_depth { get; set; }

       /// <summary>
       ///RfidCode
       /// </summary>
       [Display(Name ="RfidCode")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       public string RfidCode { get; set; }

       /// <summary>
       ///刀具材料
       /// </summary>
       [Display(Name ="刀具材料")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string tool_materials { get; set; }

       /// <summary>
       ///厂商代码
       /// </summary>
       [Display(Name ="厂商代码")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string vendor_code { get; set; }

       /// <summary>
       ///时长
       /// </summary>
       [Display(Name ="时长")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string time { get; set; }

       /// <summary>
       ///创建人
       /// </summary>
       [Display(Name ="创建人")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       [Editable(true)]
       public string CreateBy { get; set; }

       /// <summary>
       ///创建时间
       /// </summary>
       [Display(Name ="创建时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? CreateOn { get; set; }

       /// <summary>
       ///更新人
       /// </summary>
       [Display(Name ="更新人")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       [Editable(true)]
       public string UpdateBy { get; set; }

       /// <summary>
       ///更新时间
       /// </summary>
       [Display(Name ="更新时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? LastUpdateOn { get; set; }

       /// <summary>
       ///逻辑删除  0/不删除  1/已删除
       /// </summary>
       [Display(Name ="逻辑删除  0/不删除  1/已删除")]
       [Column(TypeName="bit")]
       [Editable(true)]
       public bool? IsDeleted { get; set; }

       /// <summary>
       ///选择工单
       /// </summary>
       [Display(Name ="选择工单")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string remark { get; set; }

       /// <summary>
       ///程序编码
       /// </summary>
       [Display(Name ="程序编码")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       public string ProCode { get; set; }

       /// <summary>
       ///父级
       /// </summary>
       [Display(Name ="父级")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string ParentId { get; set; }

       /// <summary>
       ///弃用状态 
       /// </summary>
       [Display(Name ="弃用状态 ")]
       [MaxLength(10)]
       [Column(TypeName="nvarchar(10)")]
       public string DisuseState { get; set; }

       /// <summary>
       ///使用状态
       /// </summary>
       [Display(Name ="使用状态")]
       [MaxLength(10)]
       [Column(TypeName="nvarchar(10)")]
       public string UseState { get; set; }

       /// <summary>
       ///第二序
       /// </summary>
       [Display(Name ="第二序")]
       [Column(TypeName="int")]
       public int? SecornSeq { get; set; }

       /// <summary>
       ///锁定
       /// </summary>
       [Display(Name ="锁定")]
       [MaxLength(10)]
       [Column(TypeName="nvarchar(10)")]
       [Editable(true)]
       public string Lock { get; set; }

       
    }
}